﻿<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5shiv.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<![endif]-->
<link rel="stylesheet" type="text/css" href="__PUBLIC__/admin/static/h-ui/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/admin/static/h-ui.admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/admin/lib/Hui-iconfont/1.0.8/iconfont.css" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/admin/static/h-ui.admin/skin/default/skin.css" id="skin" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/admin/static/h-ui.admin/css/style.css" />
<!--[if IE 6]>
<script type="text/javascript" src="lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>后台日志</title>
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 日志管理 <span class="c-gray en">&gt;</span> 后台日志 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="page-container">
	<div class="text-c">
		<form action="" method="get">
			<span class="select-box inline">
				每页数量
				<select name="size" class="select">
					<option {if condition="$size eq 15"}selected{/if} value="15">15</option>
					<option {if condition="$size eq 50"}selected{/if} value="50">50</option>
					<option {if condition="$size eq 100"}selected{/if} value="100">100</option>
					<option {if condition="$size eq 200"}selected{/if} value="200">200</option>
				</select>
			</span>
			<input type="text" name="way" placeholder="请求地址" style="width:250px" class="input-text" value="{$way}">
			<input type="text" name="day" value="{$day}" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" id="logmin" class="input-text Wdate" style="width:180px;">
			<button name="" id="" class="btn btn-success" type="submit"><i class="Hui-iconfont"></i> 搜索</button>
		</form>
	</div>
	<div class="cl pd-5 bg-1 bk-gray mt-20"> <span class="l">
		<!-- <a href="javascript:;" onclick="datadel()" class="btn btn-danger radius"><i class="Hui-iconfont"></i> 批量删除</a> -->
		<!-- <a class="btn btn-primary radius" data-title="添加一级菜单" data-href="article-add.html" onclick="Hui_admin_tab(this)" href="javascript:;"><i class="Hui-iconfont"></i> 添加一级菜单</a> -->

		</span> <span class="r">共有数据：<strong>{$count}</strong> 条</span>
	</div>
	<div class="mt-20">
		<div id="DataTables_Table_0_wrapper" class="dataTables_wrapper no-footer">
			<table class="table table-border table-bordered table-bg table-hover table-sort table-responsive dataTable no-footer" id="DataTables_Table_0" role="gsid" aria-describedby="DataTables_Table_0_info">
				<thead>
					<tr class="text-c">
						<!-- <th class="sorting_asc" tabindex="0" rowspan="1" colspan="1" style="width: 25px;"  width="25"><input type="checkbox" name="" value=""></th> -->
						<th class="sorting" tabindex="0"  rowspan="1" colspan="1" style="width: 5%;"  width="80">ID</th>
						<th class="sorting" tabindex="0"  rowspan="1" colspan="1" style="width: 10%;" width="80">请求地址</th>
						<th class="sorting" tabindex="0"  rowspan="1" colspan="1" style="width: 10%;" width="80">方法名</th>
						<th class="sorting" tabindex="0"  rowspan="1" colspan="1" style="width: 10%;" width="80">操作时间</th>
						<th class="sorting" tabindex="0"  rowspan="1" colspan="1" style="width: 10%;" width="80">提交数据</th>
						<th class="sorting" tabindex="0"  rowspan="1" colspan="1" style="width: 10%;max-width: 200px;" width="80">返回数据（json）</th>
						<th class="sorting" tabindex="0"  rowspan="1" colspan="1" style="width: 10%;" width="80">返回码</th>
						<th class="sorting" tabindex="0"  rowspan="1" colspan="1" style="width: 10%;" width="80">返回信息</th>
						<th class="sorting" tabindex="0"  rowspan="1" colspan="1" style="width: 10%;" width="80">管理员id</th>
						<th class="sorting" tabindex="0"  rowspan="1" colspan="1" style="width: 10%;" width="80">管理员用户名</th>
						<th class="sorting" tabindex="0"  rowspan="1" colspan="1" style="width: 10%;" width="80">操作ip</th>
					</tr>
				</thead>
				<tbody>
					{volist name="data" id="v"}
					<tr class="text-c odd" role="row">
						<!-- <td class="sorting_1"><input type="checkbox" value="" name=""></td> -->
						<td>{$v['id']}</td>
						<td>{$v['way']}</td>
						<td>{$v['action']}</td>
						<td>{$v['time']}</td>
						<td style="width: 10%;max-width: 220px;">{$v['post']}</td>
						<td>{$v['return_json']}</td>
						<td>{$v['return_code']}</td>
						<td>{$v['return_msg']}</td>
						<td>{$v['user_id']}</td>
						<td>{$v['user_name']}</td>
						<td>{$v['user_ip']}</td>

					</tr>
					{/volist}
				</tbody>
			</table>
			{$page_str}
			<!-- <div class="dataTables_info" id="DataTables_Table_0_info" role="status" aria-live="polite">显示 1 到 2 ，共 2 条</div> -->
			<!-- <div class="dataTables_paginate paging_simple_numbers" id="DataTables_Table_0_paginate"> -->
				<!-- <a class="paginate_button previous disabled"  data-dt-idx="0" href="?page=2" tabindex="0" id="DataTables_Table_0_previous">首页</a> -->
				<!-- <a class="paginate_button previous disabled"  data-dt-idx="0" tabindex="0" id="DataTables_Table_0_previous">上一页</a> -->
				<!-- <span><a class="paginate_button current"  data-dt-idx="1" tabindex="0">1</a></span> -->
				<!-- <span><a class="paginate_button disabled"  data-dt-idx="2" tabindex="0">2</a></span> -->
				<!-- <a class="paginate_button next disabled"  data-dt-idx="2" tabindex="0" id="DataTables_Table_0_next">下一页</a> -->
			<!-- </div> -->
		</div>
	</div>
</div>
<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="__PUBLIC__/admin/lib/jquery/1.9.1/jquery.min.js"></script> 
<script type="text/javascript" src="__PUBLIC__/admin/lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="__PUBLIC__/admin/static/h-ui/js/H-ui.min.js"></script> 
<script type="text/javascript" src="__PUBLIC__/admin/static/h-ui.admin/js/H-ui.admin.js"></script> <!--/_footer 作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="__PUBLIC__/admin/lib/My97DatePicker/4.8/WdatePicker.js"></script> 
<script type="text/javascript" src="__PUBLIC__/admin/lib/datatables/1.10.0/jquery.dataTables.min.js"></script> 
<script type="text/javascript" src="__PUBLIC__/admin/lib/laypage/1.2/laypage.js"></script>
<script type="text/javascript">
/*菜单-删除*/
function user_del(obj,id,url){
	layer.confirm('确认要冻结吗？',function(index){
		$.post(url,{'id':id},function(result){
			//发送post请求
			if(result.code==201){
				//判断返回值
				layer.msg(result.msg,{icon:2,time:1000});
				return false;
				//错误弹窗提示
			}else if(result.code==200){
				layer.msg(result.msg,{icon:1,time:1000});
				//成功弹窗提示
				setTimeout(function(){
					//定时运行
					$(obj).parents("tr").children(".use_type").html('<span style="color:red;">不可用</span>');
					//删除当前行
					<!-- $(obj).parents("tr").remove(); -->
					//删除当前行
				},1010);
				return false;
			}
		});
	});
	return false;
}
/*菜单-使用*/
function user_use(obj,id,url){
	layer.confirm('确认要解冻吗？',function(index){
		$.post(url,{'id':id},function(result){
			//发送post请求
			if(result.code==201){
				//判断返回值
				layer.msg(result.msg,{icon:2,time:1000});
				return false;
				//错误弹窗提示
			}else if(result.code==200){
				layer.msg(result.msg,{icon:1,time:1000});
				//成功弹窗提示
				setTimeout(function(){
					//定时运行
					$(obj).parents("tr").children(".use_type").html('<span style="color:green;">可用</span>');
					//删除当前行
				},1010);
				return false;
			}
		});
	});
	return false;
}

/*加载页面*/
function use_way(title,url,w,h){
	layer_show(title,url,w,h);
}


</script> 
</body>
</html>